<template>
  <el-container>
    <el-aside width="201px">
        <main-aside></main-aside>
    </el-aside>
    <el-container>
      <el-header>Header</el-header>
      <el-main>
          <router-view class="cusbox"></router-view>
      </el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </el-container>
</template>

<script>
import MainAside from '../components/MainAside'
export default {
  created(){
    this.$store.dispatch("getCompanyList");
    this.$store.dispatch("checkLogin");
  },
  components:{
    "main-aside":MainAside
  }
};
</script>

<style lang="less" scoped>
  .el-container{
    height: 100%;
  }
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    padding: 0;
    .cusbox{
      height: 100%;
      display:flex;
      .customer_list{
        flex-basis:300px;
      }
      .order_list{
        flex-basis:320px;
        height: 100%;
      }
    }
  }
</style>